-- GENERATED SPELL FOR [Blackrock Scout] --


function spell0_4064(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_4064', 15000, 1)
end

function spell1_4064(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4064', 635, 1)
end

function Sorts_4064(pUnit, Event)
local choix_sorts_4064 = math.random(0, 1)
if choix_sorts_4064 == 0 then
pUnit:RegisterEvent('spell0_4064', 1, 1)
end
if choix_sorts_4064 == 1 then
pUnit:RegisterEvent('spell1_4064', 1, 1)
end
end

function mob4064_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4064', math.random(1500, 3000), 1)
end

function mob4064_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4064_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4064_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4064, 1, 'mob4064_Action')
RegisterUnitEvent(4064, 2, 'mob4064_Leave')
RegisterUnitEvent(4064, 3, 'mob4064_Kill')
RegisterUnitEvent(4064, 4, 'mob4064_Die')
